package com.spring.cloud.module.common.core;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.spring.cloud.module.util.Constants;

public class BaseJsonResponse extends BaseJsonObject implements IJsonResponse {

    private static final long serialVersionUID = 3619452430777668288L;
    protected int status = Constants.RESPONSE_CODE_SUCCESS;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    protected String error = "";


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
